package com.dykj.fireFighting.server.fire.maintenanceplan.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dykj.fireFighting.api.fire.maintenanceplan.entity.RoutineMaintenance;
import com.dykj.fireFighting.api.fire.maintenanceplan.vo.RoutineMaintenanceNumVo;
import com.dykj.fireFighting.api.fire.maintenanceplan.vo.RoutineMaintenanceVo;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description 例行维保记录
 * @Author zly
 * @Date 2021-07-28 16:30:03
 */
public interface RoutineMaintenanceMapper extends SuperMapper<RoutineMaintenance> {


    IPage<RoutineMaintenanceVo> queryList(Page page, @Param("params") HashMap<String, Object> params);

    List<RoutineMaintenanceNumVo> getNumStatistic(@Param("wbId") String wbId);

    int getMaintenanceNum(Map<String, String> params);

    RoutineMaintenance getRoutineMaintenanceMessage(String id);

    /**
     * 例行维保 维保机构当月评价得分详情
     *
     * @param params
     * @return
     */
    List<RoutineMaintenanceVo> queryRoutineMaintenanceEvaluationInfoList(@Param("params") Map<String, Object> params);
}
